package com.lin.chapter30.chapter2.builder;

public class Car implements ICar {
	private String engine;
	private String wheel;

	public Car(String engine, String wheel) {
		this.engine = engine;
		this.wheel = wheel;
	}

	@Override
	public String getWheel() {
		return this.wheel;
	}

	@Override
	public String getEngine() {
		return this.engine;
	}

	@Override
	public String toString() {
		return "车的轮子是：" + this.wheel + "\n车的引擎是：" + this.engine;
	}
}
